﻿// -----------------------------------------------------------------------
// <copyright file="MainWindow.xaml.cs" company="CompDJ">
//     Copyright (c) CompDJ. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace T4DemoCs
{
    using System;
    using System.Windows;
    using GalaSoft.MvvmLight.Messaging;
    using T4DemoCs.Navigation;

    /// <summary>Interaction logic for MainWindow.xaml</summary>
    public partial class MainWindow : Window
    {
        /// <summary>Initializes a new instance of the MainWindow class.</summary>
        public MainWindow()
        {
            InitializeComponent();
            //// This is a hack to have it create the navitation service before the main window starts.
            Navigation.NavigationService.Current.ToString();

            //// Sends the main frame to the navigation service.
            Messenger.Default.Send<NavigationFrameMessage>(new NavigationFrameMessage(this.MainFrame));
        }
    }
}